using System;
namespace Microsoft.Phone.Controls
{
	internal class TwentyFourHourDataSource : DataSource
	{
		protected override DateTime? GetRelativeTo(DateTime relativeDate, int delta)
		{
			int num = (24 + relativeDate.get_Hour() + delta) % 24;
			return new DateTime?(new DateTime(relativeDate.get_Year(), relativeDate.get_Month(), relativeDate.get_Day(), num, relativeDate.get_Minute(), 0));
		}
	}
}
